package com.yike.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.math.BigDecimal;
import java.util.Date;
import com.yike.common.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import com.yike.common.api.Update;

/**
 * 店铺表
 *
 * @author Sakura
 * @since 2024-08-23
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("qy_shop")
@ApiModel(value = "Shop对象")
public class Shop extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @NotBlank(message = "店铺编号不能为空")
    @ApiModelProperty("店铺编号")
    private String shopNo;

    @ApiModelProperty("商户id")
    private Long merchantId;

    @ApiModelProperty("类型ID")
    private Long typeId;

    @NotBlank(message = "店铺名称不能为空")
    @ApiModelProperty("店铺名称")
    private String shopName;

    @ApiModelProperty("店铺照片")
    private String shopImg;

    @ApiModelProperty("logo")
    private String logoUrl;

    @ApiModelProperty("联系人")
    private String contact;

    @ApiModelProperty("联系电话")
    private String mobile;

    @ApiModelProperty("省code")
    private String provCode;

    @ApiModelProperty("省名称")
    private String provName;

    @ApiModelProperty("市code")
    private String cityCode;

    @ApiModelProperty("市名称")
    private String cityName;

    @ApiModelProperty("区code")
    private String distCode;

    @ApiModelProperty("区名称")
    private String distName;

    @ApiModelProperty("详细地址")
    private String address;

    @ApiModelProperty("经度")
    private BigDecimal longitude;

    @ApiModelProperty("维度")
    private BigDecimal latitude;

    @ApiModelProperty("定位地址")
    private String locationAddress;

    @ApiModelProperty("调价状态：1开启 0关闭")
    private Boolean adjustPriceFlag;

    @ApiModelProperty("调价百分比（1-100）")
    private Integer adjustPriceRate;

    @ApiModelProperty("云助守状态：1开启 0关闭")
    private Boolean cloudGarrisonFlag;

    @ApiModelProperty("云助手code（每次开启都会生成一个新的code）")
    private String cloudGarrisonCode;

    @ApiModelProperty("分佣比例（1-100）")
    private BigDecimal commissionRate;

    @ApiModelProperty("法人银行卡号")
    private String bankCardNo;




}
